package genetica.cromosomas.fenotipos;

import genetica.cromosomas.fenotipos.fenotipoPG.TreePG;

public class FenotipoPG extends Fenotipo implements Cloneable {

	protected TreePG arbol;

	public FenotipoPG() {
		arbol = null;
	}

	public TreePG getArbol() {
		return arbol;
	}
	
	public void setArbol(TreePG tree){
		this.arbol = tree;
	}

	@Override
	public FenotipoPG clone() {
		FenotipoPG fen = new FenotipoPG();
		if (arbol != null)
			fen.arbol = this.arbol.clone();
		return fen;
	}
	
	@Override
	public String toString(){
		return this.arbol.toString();
	}
}